// To parse this JSON data, do
//
//     final mineCourseModel = mineCourseModelFromJson(jsonString);

class MineCourseModel {
    List<PurchasedCourse> purchasedCourses;

    MineCourseModel({
        this.purchasedCourses,
    });

    factory MineCourseModel.fromJson(Map<String, dynamic> json) => new MineCourseModel(
        purchasedCourses: new List<PurchasedCourse>.from(json["purchasedCourses"].map((x) => PurchasedCourse.fromJson(x))),
    );

    Map<String, dynamic> toJson() => {
        "purchasedCourses": new List<dynamic>.from(purchasedCourses.map((x) => x.toJson())),
    };
}

class PurchasedCourse {
    String avatarUrl;
    dynamic buyGoodsCreateTime;
    String cover;
    String goId;
    String goName;
    int id;
    int isCourse;
    String lessionCount;
    String ocId;
    String ocName;
    int openClassCreateTime;
    String proName;
    String tname;

    PurchasedCourse({
        this.avatarUrl,
        this.buyGoodsCreateTime,
        this.cover,
        this.goId,
        this.goName,
        this.id,
        this.isCourse,
        this.lessionCount,
        this.ocId,
        this.ocName,
        this.openClassCreateTime,
        this.proName,
        this.tname,
    });

    factory PurchasedCourse.fromJson(Map<String, dynamic> json) => new PurchasedCourse(
        avatarUrl: json["avatarUrl"],
        buyGoodsCreateTime: json["buyGoodsCreateTime"],
        cover: json["cover"],
        goId: json["goId"],
        goName: json["goName"],
        id: json["id"],
        isCourse: json["isCourse"],
        lessionCount: json["lessionCount"],
        ocId: json["ocId"],
        ocName: json["ocName"],
        openClassCreateTime: json["openClassCreateTime"],
        proName: json["proName"],
        tname: json["tname"],
    );

    Map<String, dynamic> toJson() => {
        "avatarUrl": avatarUrl,
        "buyGoodsCreateTime": buyGoodsCreateTime,
        "cover": cover,
        "goId": goId,
        "goName": goName,
        "id": id,
        "isCourse": isCourse,
        "lessionCount": lessionCount,
        "ocId": ocId,
        "ocName": ocName,
        "openClassCreateTime": openClassCreateTime,
        "proName": proName,
        "tname": tname,
    };
}
